<{include file="simple_header.tpl"}>
<div class="content">
<div class="upload">
<div class="upload1">
    <div class="upname"> <h1>编辑图书</h1> </div>
    <div class="uplist">
        <div class="uplistname"><span>图书名称<span style="color:#C30">&nbsp;</span>:</span></div>
        <div class="upvalue">
            <div class="upinput" style="padding-top:5px;border:0;">《<{$book.book_name}>》</div>
        </div>
        <form action='/book/edit' method='post' enctype="multipart/form-data" id='upForm'>
        <input type='hidden' id='book_id' name='book_id' value='<{$book.book_id}>' >
        <div class="uplist">
            <div class="uplistname"><span>作者<span>&nbsp;</span>:</span></div>
            <div class="upvalue">
                <div class="upinputw">
                <div class="upinputw1"><input type="text" class="textw" value="<{$book.author}>" name="author" id='author'></div>
                </div>
            </div> 
            <div class="uplist">
                <div class="uplistname"><span>图书封面<span>&nbsp;</span>:</span></div>
                <div class="upvalue"><div class="upinputs">
                <img src="<{$book.book_pic}>" width="128" height="168">
                <input type="file" class="file" name="book_pic" id='book_pic'></div></div>
            </div>              
            <div class="uplist">
                <div class="uplistname"><span>图书简介<span style="color:#C30">&nbsp;</span>:</span></div>
                <div class="upvalue"><div class="upinputi">
                    <textarea class="introtext" name="book_desn" id='book_desn'><{$book.book_desn}></textarea>
                </div></div>
            </div>
            <div class="uplist">
                <div class="uplistname"></div>
                <div class="upvalue">
                	<a href="javascript:void(0)" class="tijiao" id='tijiao'>点击提交</a>
                	<span style='color:red'><{$message}></span>
                </div>
            </div>  
        </div>
        </form>
    </div>
</div></div></div>
<script>
$(function(){
	$('#tijiao').click(function(){
		$('#upForm').submit();
	});
});
</script>
<{include file="footer.tpl"}>